<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var c1= { name:"张三"}
    var s1 = "111"
    function f1(obj) {
        obj.name="李四"
    }
    function f2(str) {
        str="222"
    }
    f1(c1);
    f2(s1);
    console.log(c1.name);
    console.log(s1);


</script>
</body>
</html>